package com.github.chirspan.xaas.core.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.chirspan.xaas.mybatis.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @Author: chenpan
 * @Date: 2021-04-15 16:48:09
 * @Description: 数据源
 */
@TableName(value = "xaas_db_datasource")
@Data
@ToString(callSuper = true)
public class DbDataSource extends BaseModel {

    @ApiModelProperty(value = "数据源名称")
    @TableField(value = "ds_name")
    private String dsName;

    @ApiModelProperty(value = "描述信息")
    @TableField(value = "note")
    private String note;

    @ApiModelProperty(value = "数据源类型")
    @TableField(value = "ds_type")
    private String dsType;

    @ApiModelProperty(value = "json数据源配置")
    @TableField(value = "ds_config")
    private String dsConfig;

    @TableField(value = "env_profile")
    private String envProfile;

}